package com.wgworkshop.pems.repository;

import com.wgworkshop.pems.entity.StudentEntity;
import org.springframework.data.domain.Sort;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

/**
 * 学生库。
 * Created by wlc on 2017/7/2.
 */
@Repository
public interface StudentRepository extends PagingAndSortingRepository<StudentEntity, Long> {
    Iterable<StudentEntity> findByNameContaining(String name, Sort sort);
}
